package com.inspectortime.mail.mailer;

import java.util.Properties;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.mail.MailMessage;
import org.springframework.mail.SimpleMailMessage;


/**
 * Implementation of the AbstractProeprtyLoadingSimpleMailerImpl that sends
 * emails in simple ascii format
 * 
 * @author bones
 *
 */
public class PropertyLoadingSimpleMailerImpl extends AbstractPropertyLoadingMailerImpl {

	protected static Log log = LogFactory.getLog(PropertyLoadingHtmlMailerImpl.class);
    
    public PropertyLoadingSimpleMailerImpl(Properties props) {
    	super(props);
    }
    
    /**
     * Send mail in simple ascii format
     */
    protected void prepareMessageAndSend(MailMessage mailMsg) {
    	mailSender.send((SimpleMailMessage) mailMsg);
    }
 
    
}
